#pragma once
#include "loadUtils.h"
#include <stdlib.h>
#include <string.h>
struct AdminProvVars{
	int id;
	char name[20];
	char email[40];
	char password[40];
	char type[5];
};

/**
 * @brief Array of AdminProvVars structs, allocated dynamically later on
 */
struct AdminProvVars *adminprovdata;
int adminprovcount;
/**
 * @brief Load adminprov file into memory
 *
 * @param filename
 *
 * @return return code
 */
int loadAdminProvs(char const *filename);
/**
 * @brief save adminprovdata to file
 *
 * @param filename
 *
 * @return return code
 */
int writeAdminProvs(char const *filename);
/**
 * @brief add a adminprov to the vector, reallocates if needed
 *
 * @param n
 */
void addAdminProv(struct AdminProvVars n);
/**
 * @brief removes a adminprov by index, find it yourself first ;)
 *
 * @param index
 */
void rmAdminProv(int index);
